﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SMS.dao;

namespace SMS.cntr
{
    public class RegistrationCntr
    {
        private static readonly RegistrationCntr INSTANCE = new RegistrationCntr();

        public static RegistrationCntr Instance
        {
            get
            {
                return INSTANCE;
            }
        }

        private RegistrationCntr() { }

        public int register(int stuId, int claId)
        {
            return RegistrationDao.Instance.insert(stuId, claId);
        }

        public int unregister(int stuId, int claId)
        {
            return RegistrationDao.Instance.delete(stuId, claId);
        }

    }
}
